﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Trangcanhan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] == null)
        {
            Response.Redirect("Trangchu.aspx");
        }
        else
        {
            Control Ctr = null;

            if (Request.QueryString["action"] == "doithongtin")
            {
                Ctr = Page.LoadControl("Controls/UC_Doithongtin.ascx");
            }
            else if (Request.QueryString["action"] == "doimatkhau")
            {
                Ctr = Page.LoadControl("Controls/UC_Doimatkhau.ascx");

            }
            else
            {
                Ctr = Page.LoadControl("Controls/UC_Trangcanhan.ascx");
            }

            Panel1.Controls.Add(Ctr);
        }
    }
}